home *** CD-ROM | disk | FTP | other *** search
- Public Class FormDocumento
- Inherits System.Windows.Forms.Form
-
- #Region " Windows Form Designer generated code "
-
- Public Sub New()
- MyBase.New()
-
- 'This call is required by the Windows Form Designer.
- InitializeComponent()
-
- 'Add any initialization after the InitializeComponent() call
-
- End Sub
-
- 'Form overrides dispose to clean up the component list.
- Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
- If disposing Then
- If Not (components Is Nothing) Then
- components.Dispose()
- End If
- End If
- MyBase.Dispose(disposing)
- End Sub
-
- 'Required by the Windows Form Designer
- Private components As System.ComponentModel.IContainer
-
- 'NOTE: The following procedure is required by the Windows Form Designer
- 'It can be modified using the Windows Form Designer.
- 'Do not modify it using the code editor.
- Public WithEvents TxtIdDocumento As System.Windows.Forms.TextBox
- Public WithEvents TxtIntestatario As System.Windows.Forms.TextBox
- Public WithEvents TxtTotaleDocumento As System.Windows.Forms.TextBox
- Public WithEvents LblIdDocumento As System.Windows.Forms.Label
- Public WithEvents LblIntestatario As System.Windows.Forms.Label
- Public WithEvents LblData As System.Windows.Forms.Label
- Public WithEvents LblTotaleDocumento As System.Windows.Forms.Label
- Friend WithEvents ButtonCancella As System.Windows.Forms.Button
- Friend WithEvents ButtonSalva As System.Windows.Forms.Button
- Friend WithEvents ButtonNuovo As System.Windows.Forms.Button
- Friend WithEvents GroupBox1 As System.Windows.Forms.GroupBox
- Public WithEvents TxtIdRiga As System.Windows.Forms.TextBox
- Public WithEvents TxtIdArticolo As System.Windows.Forms.TextBox
- Public WithEvents TxtQuantita As System.Windows.Forms.TextBox
- Public WithEvents TxtPrezzoCosto As System.Windows.Forms.TextBox
- Public WithEvents TxtIva As System.Windows.Forms.TextBox
- Public WithEvents LblIdRiga As System.Windows.Forms.Label
- Public WithEvents LblIdArticolo As System.Windows.Forms.Label
- Public WithEvents LblQuantita As System.Windows.Forms.Label
- Public WithEvents LblPrezzoCosto As System.Windows.Forms.Label
- Public WithEvents LblIva As System.Windows.Forms.Label
- Friend WithEvents ButtonCancellaRiga As System.Windows.Forms.Button
- Friend WithEvents ButtonSalvaRiga As System.Windows.Forms.Button
- Friend WithEvents ButtonNuovoRiga As System.Windows.Forms.Button
- Friend WithEvents ListView1 As System.Windows.Forms.ListView
- Friend WithEvents ColumnCodice As System.Windows.Forms.ColumnHeader
- Friend WithEvents ColumnCodiceArticolo As System.Windows.Forms.ColumnHeader
- Friend WithEvents ColumnQuantita As System.Windows.Forms.ColumnHeader
- Friend WithEvents ColumnPrezzo As System.Windows.Forms.ColumnHeader
- Friend WithEvents ColumnIva As System.Windows.Forms.ColumnHeader
- Friend WithEvents DTPickerData As System.Windows.Forms.DateTimePicker
- Public WithEvents TxtDescrArticolo As System.Windows.Forms.TextBox
- Public WithEvents TxtDescIntestatario As System.Windows.Forms.TextBox
- Friend WithEvents ColumnDescrArticolo As System.Windows.Forms.ColumnHeader
- <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
- Me.TxtIdDocumento = New System.Windows.Forms.TextBox()
- Me.TxtIntestatario = New System.Windows.Forms.TextBox()
- Me.TxtTotaleDocumento = New System.Windows.Forms.TextBox()
- Me.LblIdDocumento = New System.Windows.Forms.Label()
- Me.LblIntestatario = New System.Windows.Forms.Label()
- Me.LblData = New System.Windows.Forms.Label()
- Me.LblTotaleDocumento = New System.Windows.Forms.Label()
- Me.ButtonCancella = New System.Windows.Forms.Button()
- Me.ButtonSalva = New System.Windows.Forms.Button()
- Me.ButtonNuovo = New System.Windows.Forms.Button()
- Me.GroupBox1 = New System.Windows.Forms.GroupBox()
- Me.ButtonCancellaRiga = New System.Windows.Forms.Button()
- Me.ButtonSalvaRiga = New System.Windows.Forms.Button()
- Me.ButtonNuovoRiga = New System.Windows.Forms.Button()
- Me.TxtDescrArticolo = New System.Windows.Forms.TextBox()
- Me.TxtIdRiga = New System.Windows.Forms.TextBox()
- Me.TxtIdArticolo = New System.Windows.Forms.TextBox()
- Me.TxtQuantita = New System.Windows.Forms.TextBox()
- Me.TxtPrezzoCosto = New System.Windows.Forms.TextBox()
- Me.TxtIva = New System.Windows.Forms.TextBox()
- Me.LblIdRiga = New System.Windows.Forms.Label()
- Me.LblIdArticolo = New System.Windows.Forms.Label()
- Me.LblQuantita = New System.Windows.Forms.Label()
- Me.LblPrezzoCosto = New System.Windows.Forms.Label()
- Me.LblIva = New System.Windows.Forms.Label()
- Me.ListView1 = New System.Windows.Forms.ListView()
- Me.ColumnCodice = New System.Windows.Forms.ColumnHeader()
- Me.ColumnCodiceArticolo = New System.Windows.Forms.ColumnHeader()
- Me.ColumnDescrArticolo = New System.Windows.Forms.ColumnHeader()
- Me.ColumnQuantita = New System.Windows.Forms.ColumnHeader()
- Me.ColumnPrezzo = New System.Windows.Forms.ColumnHeader()
- Me.ColumnIva = New System.Windows.Forms.ColumnHeader()
- Me.DTPickerData = New System.Windows.Forms.DateTimePicker()
- Me.TxtDescIntestatario = New System.Windows.Forms.TextBox()
- Me.GroupBox1.SuspendLayout()
- Me.SuspendLayout()
- '
- 'TxtIdDocumento
- '
- Me.TxtIdDocumento.AcceptsReturn = True
- Me.TxtIdDocumento.AutoSize = False
- Me.TxtIdDocumento.BackColor = System.Drawing.SystemColors.Window
- Me.TxtIdDocumento.Cursor = System.Windows.Forms.Cursors.IBeam
- Me.TxtIdDocumento.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
- Me.TxtIdDocumento.ForeColor = System.Drawing.SystemColors.WindowText
- Me.TxtIdDocumento.Location = New System.Drawing.Point(112, 8)
- Me.TxtIdDocumento.MaxLength = 0
- Me.TxtIdDocumento.Name = "TxtIdDocumento"
- Me.TxtIdDocumento.RightToLeft = System.Windows.Forms.RightToLeft.No
- Me.TxtIdDocumento.Size = New System.Drawing.Size(144, 19)
- Me.TxtIdDocumento.TabIndex = 10
- Me.TxtIdDocumento.Text = ""
- '
- 'TxtIntestatario
- '
- Me.TxtIntestatario.AcceptsReturn = True
- Me.TxtIntestatario.AutoSize = False
- Me.TxtIntestatario.BackColor = System.Drawing.SystemColors.Window
- Me.TxtIntestatario.Cursor = System.Windows.Forms.Cursors.IBeam
- Me.TxtIntestatario.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
- Me.TxtIntestatario.ForeColor = System.Drawing.SystemColors.WindowText
- Me.TxtIntestatario.Location = New System.Drawing.Point(112, 32)
- Me.TxtIntestatario.MaxLength = 0
- Me.TxtIntestatario.Name = "TxtIntestatario"
- Me.TxtIntestatario.RightToLeft = System.Windows.Forms.RightToLeft.No
- Me.TxtIntestatario.Size = New System.Drawing.Size(40, 19)
- Me.TxtIntestatario.TabIndex = 11
- Me.TxtIntestatario.Text = ""
- '
- 'TxtTotaleDocumento
- '
- Me.TxtTotaleDocumento.AcceptsReturn = True
- Me.TxtTotaleDocumento.AutoSize = False
- Me.TxtTotaleDocumento.BackColor = System.Drawing.SystemColors.Window
- Me.TxtTotaleDocumento.Cursor = System.Windows.Forms.Cursors.IBeam
- Me.TxtTotaleDocumento.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
- Me.TxtTotaleDocumento.ForeColor = System.Drawing.SystemColors.WindowText
- Me.TxtTotaleDocumento.Location = New System.Drawing.Point(112, 80)
- Me.TxtTotaleDocumento.MaxLength = 0
- Me.TxtTotaleDocumento.Name = "TxtTotaleDocumento"
- Me.TxtTotaleDocumento.RightToLeft = System.Windows.Forms.RightToLeft.No
- Me.TxtTotaleDocumento.Size = New System.Drawing.Size(144, 19)
- Me.TxtTotaleDocumento.TabIndex = 14
- Me.TxtTotaleDocumento.Text = ""
- '
- 'LblIdDocumento
- '
- Me.LblIdDocumento.BackColor = System.Drawing.SystemColors.Control
- Me.LblIdDocumento.Cursor = System.Windows.Forms.Cursors.Default
- Me.LblIdDocumento.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
- Me.LblIdDocumento.ForeColor = System.Drawing.SystemColors.ControlText
- Me.LblIdDocumento.Location = New System.Drawing.Point(8, 8)
- Me.LblIdDocumento.Name = "LblIdDocumento"
- Me.LblIdDocumento.RightToLeft = System.Windows.Forms.RightToLeft.No
- Me.LblIdDocumento.Size = New System.Drawing.Size(105, 17)
- Me.LblIdDocumento.TabIndex = 15
- Me.LblIdDocumento.Text = "Codice"
- '
- 'LblIntestatario
- '
- Me.LblIntestatario.BackColor = System.Drawing.SystemColors.Control
- Me.LblIntestatario.Cursor = System.Windows.Forms.Cursors.Default
- Me.LblIntestatario.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
- Me.LblIntestatario.ForeColor = System.Drawing.SystemColors.ControlText
- Me.LblIntestatario.Location = New System.Drawing.Point(8, 32)
- Me.LblIntestatario.Name = "LblIntestatario"
- Me.LblIntestatario.RightToLeft = System.Windows.Forms.RightToLeft.No
- Me.LblIntestatario.Size = New System.Drawing.Size(105, 17)
- Me.LblIntestatario.TabIndex = 16
- Me.LblIntestatario.Text = "Intestatario"
- '
- 'LblData
- '
- Me.LblData.BackColor = System.Drawing.SystemColors.Control
- Me.LblData.Cursor = System.Windows.Forms.Cursors.Default
- Me.LblData.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
- Me.LblData.ForeColor = System.Drawing.SystemColors.ControlText
- Me.LblData.Location = New System.Drawing.Point(8, 56)
- Me.LblData.Name = "LblData"
- Me.LblData.RightToLeft = System.Windows.Forms.RightToLeft.No
- Me.LblData.Size = New System.Drawing.Size(105, 17)
- Me.LblData.TabIndex = 17
- Me.LblData.Text = "Data"
- '
- 'LblTotaleDocumento
- '
- Me.LblTotaleDocumento.BackColor = System.Drawing.SystemColors.Control
- Me.LblTotaleDocumento.Cursor = System.Windows.Forms.Cursors.Default
- Me.LblTotaleDocumento.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
- Me.LblTotaleDocumento.ForeColor = System.Drawing.SystemColors.ControlText
- Me.LblTotaleDocumento.Location = New System.Drawing.Point(8, 80)
- Me.LblTotaleDocumento.Name = "LblTotaleDocumento"
- Me.LblTotaleDocumento.RightToLeft = System.Windows.Forms.RightToLeft.No
- Me.LblTotaleDocumento.Size = New System.Drawing.Size(105, 17)
- Me.LblTotaleDocumento.TabIndex = 19
- Me.LblTotaleDocumento.Text = "TotaleDocumento"
- '
- 'ButtonCancella
- '
- Me.ButtonCancella.Location = New System.Drawing.Point(296, 72)
- Me.ButtonCancella.Name = "ButtonCancella"
- Me.ButtonCancella.TabIndex = 49
- Me.ButtonCancella.Text = "Cancella"
- '
- 'ButtonSalva
- '
- Me.ButtonSalva.Location = New System.Drawing.Point(296, 40)
- Me.ButtonSalva.Name = "ButtonSalva"
- Me.ButtonSalva.TabIndex = 48
- Me.ButtonSalva.Text = "Salva"
- '
- 'ButtonNuovo
- '
- Me.ButtonNuovo.Location = New System.Drawing.Point(296, 8)
- Me.ButtonNuovo.Name = "ButtonNuovo"
- Me.ButtonNuovo.TabIndex = 47
- Me.ButtonNuovo.Text = "Nuovo"
- '
- 'GroupBox1
- '
- Me.GroupBox1.Controls.AddRange(New System.Windows.Forms.Control() {Me.ButtonCancellaRiga, Me.ButtonSalvaRiga, Me.ButtonNuovoRiga, Me.TxtDescrArticolo, Me.TxtIdRiga, Me.TxtIdArticolo, Me.TxtQuantita, Me.TxtPrezzoCosto, Me.TxtIva, Me.LblIdRiga, Me.LblIdArticolo, Me.LblQuantita, Me.LblPrezzoCosto, Me.LblIva})
- Me.GroupBox1.Location = New System.Drawing.Point(8, 112)
- Me.GroupBox1.Name = "GroupBox1"
- Me.GroupBox1.Size = New System.Drawing.Size(384, 136)
- Me.GroupBox1.TabIndex = 50
- Me.GroupBox1.TabStop = False
- Me.GroupBox1.Text = "Riga selezionata"
- '
- 'ButtonCancellaRiga
- '
- Me.ButtonCancellaRiga.Location = New System.Drawing.Point(184, 104)
- Me.ButtonCancellaRiga.Name = "ButtonCancellaRiga"
- Me.ButtonCancellaRiga.TabIndex = 52
- Me.ButtonCancellaRiga.Text = "Cancella"
- '
- 'ButtonSalvaRiga
- '
- Me.ButtonSalvaRiga.Location = New System.Drawing.Point(96, 104)
- Me.ButtonSalvaRiga.Name = "ButtonSalvaRiga"
- Me.ButtonSalvaRiga.TabIndex = 51
- Me.ButtonSalvaRiga.Text = "Salva"
- '
- 'ButtonNuovoRiga
- '
- Me.ButtonNuovoRiga.Location = New System.Drawing.Point(8, 104)
- Me.ButtonNuovoRiga.Name = "ButtonNuovoRiga"
- Me.ButtonNuovoRiga.TabIndex = 50
- Me.ButtonNuovoRiga.Text = "Nuovo"
- '
- 'TxtDescrArticolo
- '
- Me.TxtDescrArticolo.AcceptsReturn = True
- Me.TxtDescrArticolo.AutoSize = False
- Me.TxtDescrArticolo.BackColor = System.Drawing.SystemColors.Window
- Me.TxtDescrArticolo.Cursor = System.Windows.Forms.Cursors.IBeam
- Me.TxtDescrArticolo.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
- Me.TxtDescrArticolo.ForeColor = System.Drawing.SystemColors.WindowText
- Me.TxtDescrArticolo.Location = New System.Drawing.Point(208, 48)
- Me.TxtDescrArticolo.MaxLength = 0
- Me.TxtDescrArticolo.Name = "TxtDescrArticolo"
- Me.TxtDescrArticolo.RightToLeft = System.Windows.Forms.RightToLeft.No
- Me.TxtDescrArticolo.Size = New System.Drawing.Size(160, 19)
- Me.TxtDescrArticolo.TabIndex = 42
- Me.TxtDescrArticolo.Text = ""
- '
- 'TxtIdRiga
- '
- Me.TxtIdRiga.AcceptsReturn = True
- Me.TxtIdRiga.AutoSize = False
- Me.TxtIdRiga.BackColor = System.Drawing.SystemColors.Window
- Me.TxtIdRiga.Cursor = System.Windows.Forms.Cursors.IBeam
- Me.TxtIdRiga.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
- Me.TxtIdRiga.ForeColor = System.Drawing.SystemColors.WindowText
- Me.TxtIdRiga.Location = New System.Drawing.Point(80, 24)
- Me.TxtIdRiga.MaxLength = 0
- Me.TxtIdRiga.Name = "TxtIdRiga"
- Me.TxtIdRiga.RightToLeft = System.Windows.Forms.RightToLeft.No
- Me.TxtIdRiga.Size = New System.Drawing.Size(121, 19)
- Me.TxtIdRiga.TabIndex = 32
- Me.TxtIdRiga.Text = ""
- '
- 'TxtIdArticolo
- '
- Me.TxtIdArticolo.AcceptsReturn = True
- Me.TxtIdArticolo.AutoSize = False
- Me.TxtIdArticolo.BackColor = System.Drawing.SystemColors.Window
- Me.TxtIdArticolo.Cursor = System.Windows.Forms.Cursors.IBeam
- Me.TxtIdArticolo.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
- Me.TxtIdArticolo.ForeColor = System.Drawing.SystemColors.WindowText
- Me.TxtIdArticolo.Location = New System.Drawing.Point(80, 48)
- Me.TxtIdArticolo.MaxLength = 0
- Me.TxtIdArticolo.Name = "TxtIdArticolo"
- Me.TxtIdArticolo.RightToLeft = System.Windows.Forms.RightToLeft.No
- Me.TxtIdArticolo.Size = New System.Drawing.Size(121, 19)
- Me.TxtIdArticolo.TabIndex = 33
- Me.TxtIdArticolo.Text = ""
- '
- 'TxtQuantita
- '
- Me.TxtQuantita.AcceptsReturn = True
- Me.TxtQuantita.AutoSize = False
- Me.TxtQuantita.BackColor = System.Drawing.SystemColors.Window
- Me.TxtQuantita.Cursor = System.Windows.Forms.Cursors.IBeam
- Me.TxtQuantita.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
- Me.TxtQuantita.ForeColor = System.Drawing.SystemColors.WindowText
- Me.TxtQuantita.Location = New System.Drawing.Point(80, 72)
- Me.TxtQuantita.MaxLength = 0
- Me.TxtQuantita.Name = "TxtQuantita"
- Me.TxtQuantita.RightToLeft = System.Windows.Forms.RightToLeft.No
- Me.TxtQuantita.Size = New System.Drawing.Size(56, 19)
- Me.TxtQuantita.TabIndex = 34
- Me.TxtQuantita.Text = ""
- '
- 'TxtPrezzoCosto
- '
- Me.TxtPrezzoCosto.AcceptsReturn = True
- Me.TxtPrezzoCosto.AutoSize = False
- Me.TxtPrezzoCosto.BackColor = System.Drawing.SystemColors.Window
- Me.TxtPrezzoCosto.Cursor = System.Windows.Forms.Cursors.IBeam
- Me.TxtPrezzoCosto.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
- Me.TxtPrezzoCosto.ForeColor = System.Drawing.SystemColors.WindowText
- Me.TxtPrezzoCosto.Location = New System.Drawing.Point(208, 72)
- Me.TxtPrezzoCosto.MaxLength = 0
- Me.TxtPrezzoCosto.Name = "TxtPrezzoCosto"
- Me.TxtPrezzoCosto.RightToLeft = System.Windows.Forms.RightToLeft.No
- Me.TxtPrezzoCosto.Size = New System.Drawing.Size(64, 19)
- Me.TxtPrezzoCosto.TabIndex = 35
- Me.TxtPrezzoCosto.Text = ""
- '
- 'TxtIva
- '
- Me.TxtIva.AcceptsReturn = True
- Me.TxtIva.AutoSize = False
- Me.TxtIva.BackColor = System.Drawing.SystemColors.Window
- Me.TxtIva.Cursor = System.Windows.Forms.Cursors.IBeam
- Me.TxtIva.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
- Me.TxtIva.ForeColor = System.Drawing.SystemColors.WindowText
- Me.TxtIva.Location = New System.Drawing.Point(320, 72)
- Me.TxtIva.MaxLength = 0
- Me.TxtIva.Name = "TxtIva"
- Me.TxtIva.RightToLeft = System.Windows.Forms.RightToLeft.No
- Me.TxtIva.Size = New System.Drawing.Size(48, 19)
- Me.TxtIva.TabIndex = 36
- Me.TxtIva.Text = ""
- '
- 'LblIdRiga
- '
- Me.LblIdRiga.BackColor = System.Drawing.SystemColors.Control
- Me.LblIdRiga.Cursor = System.Windows.Forms.Cursors.Default
- Me.LblIdRiga.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
- Me.LblIdRiga.ForeColor = System.Drawing.SystemColors.ControlText
- Me.LblIdRiga.Location = New System.Drawing.Point(8, 24)
- Me.LblIdRiga.Name = "LblIdRiga"
- Me.LblIdRiga.RightToLeft = System.Windows.Forms.RightToLeft.No
- Me.LblIdRiga.Size = New System.Drawing.Size(72, 17)
- Me.LblIdRiga.TabIndex = 37
- Me.LblIdRiga.Text = "Codice"
- '
- 'LblIdArticolo
- '
- Me.LblIdArticolo.BackColor = System.Drawing.SystemColors.Control
- Me.LblIdArticolo.Cursor = System.Windows.Forms.Cursors.Default
- Me.LblIdArticolo.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
- Me.LblIdArticolo.ForeColor = System.Drawing.SystemColors.ControlText
- Me.LblIdArticolo.Location = New System.Drawing.Point(8, 48)
- Me.LblIdArticolo.Name = "LblIdArticolo"
- Me.LblIdArticolo.RightToLeft = System.Windows.Forms.RightToLeft.No
- Me.LblIdArticolo.Size = New System.Drawing.Size(105, 17)
- Me.LblIdArticolo.TabIndex = 38
- Me.LblIdArticolo.Text = "IdArticolo"
- '
- 'LblQuantita
- '
- Me.LblQuantita.BackColor = System.Drawing.SystemColors.Control
- Me.LblQuantita.Cursor = System.Windows.Forms.Cursors.Default
- Me.LblQuantita.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
- Me.LblQuantita.ForeColor = System.Drawing.SystemColors.ControlText
- Me.LblQuantita.Location = New System.Drawing.Point(8, 72)
- Me.LblQuantita.Name = "LblQuantita"
- Me.LblQuantita.RightToLeft = System.Windows.Forms.RightToLeft.No
- Me.LblQuantita.Size = New System.Drawing.Size(105, 17)
- Me.LblQuantita.TabIndex = 39
- Me.LblQuantita.Text = "Quantita"
- '
- 'LblPrezzoCosto
- '
- Me.LblPrezzoCosto.BackColor = System.Drawing.SystemColors.Control
- Me.LblPrezzoCosto.Cursor = System.Windows.Forms.Cursors.Default
- Me.LblPrezzoCosto.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
- Me.LblPrezzoCosto.ForeColor = System.Drawing.SystemColors.ControlText
- Me.LblPrezzoCosto.Location = New System.Drawing.Point(152, 72)
- Me.LblPrezzoCosto.Name = "LblPrezzoCosto"
- Me.LblPrezzoCosto.RightToLeft = System.Windows.Forms.RightToLeft.No
- Me.LblPrezzoCosto.Size = New System.Drawing.Size(105, 17)
- Me.LblPrezzoCosto.TabIndex = 40
- Me.LblPrezzoCosto.Text = "Prezzo"
- '
- 'LblIva
- '
- Me.LblIva.BackColor = System.Drawing.SystemColors.Control
- Me.LblIva.Cursor = System.Windows.Forms.Cursors.Default
- Me.LblIva.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
- Me.LblIva.ForeColor = System.Drawing.SystemColors.ControlText
- Me.LblIva.Location = New System.Drawing.Point(280, 72)
- Me.LblIva.Name = "LblIva"
- Me.LblIva.RightToLeft = System.Windows.Forms.RightToLeft.No
- Me.LblIva.Size = New System.Drawing.Size(72, 17)
- Me.LblIva.TabIndex = 41
- Me.LblIva.Text = "Iva"
- '
- 'ListView1
- '
- Me.ListView1.Columns.AddRange(New System.Windows.Forms.ColumnHeader() {Me.ColumnCodice, Me.ColumnCodiceArticolo, Me.ColumnDescrArticolo, Me.ColumnQuantita, Me.ColumnPrezzo, Me.ColumnIva})
- Me.ListView1.Location = New System.Drawing.Point(8, 256)
- Me.ListView1.Name = "ListView1"
- Me.ListView1.Size = New System.Drawing.Size(384, 96)
- Me.ListView1.TabIndex = 51
- Me.ListView1.View = System.Windows.Forms.View.Details
- '
- 'ColumnCodice
- '
- Me.ColumnCodice.Text = "Codice"
- '
- 'ColumnCodiceArticolo
- '
- Me.ColumnCodiceArticolo.Text = "Cod Art"
- Me.ColumnCodiceArticolo.Width = 105
- '
- 'ColumnDescrArticolo
- '
- Me.ColumnDescrArticolo.Text = "Descr. Articolo"
- '
- 'ColumnQuantita
- '
- Me.ColumnQuantita.Text = "Quantitα"
- '
- 'ColumnPrezzo
- '
- Me.ColumnPrezzo.Text = "Prezzo"
- '
- 'ColumnIva
- '
- Me.ColumnIva.Text = "% Iva"
- '
- 'DTPickerData
- '
- Me.DTPickerData.Format = System.Windows.Forms.DateTimePickerFormat.Short
- Me.DTPickerData.Location = New System.Drawing.Point(112, 56)
- Me.DTPickerData.Name = "DTPickerData"
- Me.DTPickerData.Size = New System.Drawing.Size(144, 20)
- Me.DTPickerData.TabIndex = 52
- '
- 'TxtDescIntestatario
- '
- Me.TxtDescIntestatario.AcceptsReturn = True
- Me.TxtDescIntestatario.AutoSize = False
- Me.TxtDescIntestatario.BackColor = System.Drawing.SystemColors.Window
- Me.TxtDescIntestatario.Cursor = System.Windows.Forms.Cursors.IBeam
- Me.TxtDescIntestatario.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
- Me.TxtDescIntestatario.ForeColor = System.Drawing.SystemColors.WindowText
- Me.TxtDescIntestatario.Location = New System.Drawing.Point(160, 32)
- Me.TxtDescIntestatario.MaxLength = 0
- Me.TxtDescIntestatario.Name = "TxtDescIntestatario"
- Me.TxtDescIntestatario.RightToLeft = System.Windows.Forms.RightToLeft.No
- Me.TxtDescIntestatario.Size = New System.Drawing.Size(96, 19)
- Me.TxtDescIntestatario.TabIndex = 53
- Me.TxtDescIntestatario.Text = ""
- '
- 'FormDocumento
- '
- Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
- Me.ClientSize = New System.Drawing.Size(400, 358)
- Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.TxtDescIntestatario, Me.DTPickerData, Me.ListView1, Me.GroupBox1, Me.ButtonCancella, Me.ButtonSalva, Me.ButtonNuovo, Me.TxtIdDocumento, Me.TxtIntestatario, Me.TxtTotaleDocumento, Me.LblIdDocumento, Me.LblIntestatario, Me.LblData, Me.LblTotaleDocumento})
- Me.Name = "FormDocumento"
- Me.Text = "FormDocumento"
- Me.GroupBox1.ResumeLayout(False)
- Me.ResumeLayout(False)
-
- End Sub
-
- #End Region
- Dim BufDocumento As Documento
- Dim BufRigaDocumento As RigaDocumento
- Dim TipoDocumento As String
- Private Sub ValorizzaBuffer()
- With BufDocumento
- On Error Resume Next
- .IdDocumento = TxtIdDocumento.Text
- .Intestatario = TxtIntestatario.Text
- .Data = DTPickerData.Value
- .Tipo = TipoDocumento
- .TotaleDocumento = TxtTotaleDocumento.Text
- End With
- End Sub
- Private Sub InserisciCampi()
- With BufDocumento
- TxtIdDocumento.Text = .IdDocumento
- TxtIntestatario.Text = .Intestatario
- DTPickerData.Value = .Data
- TxtTotaleDocumento.Text = .TotaleDocumento
- TxtDescIntestatario.Text = BufDocumento.DescrizioneIntestatario
- End With
- End Sub
- Private Sub SvuotaCampi()
- TxtIdDocumento.Text = ""
- TxtIntestatario.Text = ""
- DTPickerData.Value = Now
- TxtTotaleDocumento.Text = ""
- TxtDescIntestatario.Text = ""
- ListView1.Items.Clear()
- End Sub
-
-
- Private Sub ValorizzaBufferRiga()
- With BufRigaDocumento
- On Error Resume Next
- .IdRiga = TxtIdRiga.Text
- .Key = .IdRiga
- .IdDocumento = TxtIdDocumento.Text
- .IdArticolo = TxtIdArticolo.Text
- .Quantita = TxtQuantita.Text
- .PrezzoCosto = TxtPrezzoCosto.Text
- .Iva = TxtIva.Text
- End With
- End Sub
- Private Sub InserisciCampiRiga()
- With BufRigaDocumento
- TxtIdRiga.Text = .IdRiga
- TxtIdDocumento.Text = .IdDocumento
- TxtIdArticolo.Text = .IdArticolo
- TxtDescrArticolo.Text = .Articolo.Descrizione
- TxtQuantita.Text = .Quantita
- TxtPrezzoCosto.Text = .PrezzoCosto
- TxtIva.Text = .Iva
- End With
- End Sub
- Private Sub SvuotaCampiRiga()
- TxtIdRiga.Text = ""
- TxtIdArticolo.Text = ""
- TxtDescrArticolo.Text = ""
- TxtQuantita.Text = ""
- TxtPrezzoCosto.Text = ""
- TxtIva.Text = ""
- End Sub
- Private Sub SvuotaListaRighe()
- ListView1.Items.Clear()
- End Sub
- Private Sub FormDocumento_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
-
- End Sub
- Public Sub MioShow(ByVal tipo As String)
- TipoDocumento = tipo
- Me.Text = tipo
- Me.Show()
- End Sub
-
- Private Sub ButtonNuovo_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonNuovo.Click
- BufDocumento = New Documento()
- SvuotaCampi()
- End Sub
-
- Private Sub ButtonSalva_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonSalva.Click
- If BufDocumento Is Nothing Then
- MessageBox.Show("Premere prima il tasto nuovo")
- Exit Sub
- End If
- ValorizzaBuffer()
- BufDocumento.Salva()
- InserisciCampi()
- End Sub
-
- Private Sub ButtonNuovoRiga_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonNuovoRiga.Click
- BufRigaDocumento = New RigaDocumento()
- SvuotaCampiRiga()
- End Sub
-
- Private Sub ButtonSalvaRiga_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonSalvaRiga.Click
- If BufRigaDocumento Is Nothing Then
- MessageBox.Show("premere prima il tasto nuovo")
- Exit Sub
- End If
- ValorizzaBufferRiga()
- Try
- BufDocumento.ColRigaDocumento.Add(BufRigaDocumento)
- Catch
- End Try
- RiempiLista()
- BufRigaDocumento = Nothing
- SvuotaCampiRiga()
- End Sub
-
- Private Sub RiempiLista()
- Dim tmpRiga As RigaDocumento
- Dim LItem As ListViewItem
- Dim SItem As ListViewItem.ListViewSubItem
- ListView1.Items.Clear()
- For Each tmpRiga In BufDocumento.ColRigaDocumento.Elements
- LItem = ListView1.Items.Add(tmpRiga.IdRiga)
- SItem = LItem.SubItems.Add(tmpRiga.IdArticolo)
- SItem = LItem.SubItems.Add(tmpRiga.Articolo.Descrizione)
- SItem = LItem.SubItems.Add(tmpRiga.Quantita)
- SItem = LItem.SubItems.Add(tmpRiga.PrezzoCosto)
- SItem = LItem.SubItems.Add(tmpRiga.Iva)
- Next
-
- End Sub
-
-
- Private Sub ListView1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles ListView1.Click
- Dim key As String
- key = Me.ListView1.SelectedItems.Item(0).Text()
- BufRigaDocumento = BufDocumento.ColRigaDocumento.Item(key)
- InserisciCampiRiga()
- End Sub
-
- Private Sub ButtonCancellaRiga_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonCancellaRiga.Click
- If BufRigaDocumento Is Nothing Then
- MessageBox.Show("Nessuna riga selezionata")
- End If
- Try
- BufDocumento.ColRigaDocumento.Remove(CStr(BufRigaDocumento.IdRiga))
- Catch
- End Try
- SvuotaCampiRiga()
- RiempiLista()
- End Sub
-
- Private Sub ButtonCancella_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonCancella.Click
- BufDocumento.Cancella()
- BufDocumento = Nothing
- SvuotaCampi()
- SvuotaCampiRiga()
- SvuotaListaRighe()
- End Sub
-
- Private Sub TxtIdArticolo_Leave(ByVal sender As Object, ByVal e As System.EventArgs) Handles TxtIdArticolo.Leave
- If BufRigaDocumento Is Nothing Then
- MessageBox.Show("Premere prima il tasto nuovo")
- Exit Sub
- End If
- MostraDescrizioneArticolo()
- End Sub
- Private Sub MostraDescrizioneArticolo()
- If TxtIdArticolo.Text = "" Then
- TxtDescrArticolo.Text = ""
- Else
- BufRigaDocumento.Articolo.IdArticolo = TxtIdArticolo.Text
- BufRigaDocumento.Articolo.Ricerca()
- TxtDescrArticolo.Text() = BufRigaDocumento.Articolo.Descrizione
- End If
- End Sub
-
-
- Private Sub TxtIntestatario_Leave(ByVal sender As Object, ByVal e As System.EventArgs) Handles TxtIntestatario.Leave
- If BufDocumento Is Nothing Then
- MessageBox.Show("Premere prima il tasto nuovo")
- Exit Sub
- End If
- MostraDescrizioneIntestatario()
- End Sub
-
- Private Sub MostraDescrizioneIntestatario()
- If TxtIntestatario.Text = "" Then
- TxtDescIntestatario.Text = ""
- Else
- Select Case TipoDocumento
- Case "Carico"
- Dim ObjFornitore As New Fornitore()
- ObjFornitore.IdFornitore = TxtIntestatario.Text
- ObjFornitore.Ricerca()
- BufDocumento.DescrizioneIntestatario = ObjFornitore.RagioneSociale
- Case "Scarico"
- Dim ObjCliente As New Cliente()
- ObjCliente.IdCliente = TxtIntestatario.Text
- ObjCliente.Ricerca()
- BufDocumento.DescrizioneIntestatario = ObjCliente.RagioneSociale
- End Select
- End If
- TxtDescIntestatario.Text = BufDocumento.DescrizioneIntestatario
- End Sub
-
-
- Private Sub TxtIntestatario_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TxtIntestatario.TextChanged
-
- End Sub
- End Class
-